package model.components.nodes.comparator;

import java.util.Comparator;

import model.components.nodes.node.Node;

public class NodeNumberComparator implements Comparator< Node >
{
	@Override
	public int compare( Node aNode, Node bNode )
	{
		Integer aNodeNumber = Integer.valueOf( aNode.getNumber() );
		Integer bNodeNumber = Integer.valueOf( bNode.getNumber() );
		
		return aNodeNumber.compareTo( bNodeNumber );
	}

}
